package com.装饰器模式;

/**
 * 动物加速装备
 * @author Fang Ruichuan
 * @date 2022-09-29 9:58
 */
public class AnimalAcceleratorEquipment extends AnimalEquipment {
    // 定义被修饰者
    public AnimalAcceleratorEquipment(Animal animal) {
        super(animal);
    }


    @Override
    protected void beforeMove() {
        System.out.println("打开加速引擎......");
    }

    @Override
    protected void afterMove() {
        System.out.println("关闭加速引擎......");
    }

    @Override
    protected void beforeBite() {

    }


    @Override
    protected void afterBite() {

    }

}
